<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html>
<head>
  <title>报表管理列表</title>
  <meta name="decorator" content="list"/>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <html:css  name="iCheck,Validform,jquery-ztree,easy-ui"/>
  <html:js  name="iCheck,Validform,jquery-ztree,easy-ui,public-js"/>
  <style type="text/css">.row{margin:0;}</style>
</head>
<body title="报表管理">
<div class="easyui-layout" fit="true" style="width:100%;">
	<div data-options="region:'center'" title="报表管理">
		<grid:grid id="reportGridId" url="${adminPath}/sys/report/ajaxList">
			<grid:column label="sys.common.key" hidden="true"   name="id" width="100"/>
		    <grid:column label="报表编号"  name="number" />
		    <grid:column label="报表名称"  name="name" />
		    <grid:column label="模块"  name="module" />
		    <grid:column label="所属菜单"  name="menuName" />
		    <grid:column label="文件名"  name="fileName" />
		    <grid:column label="扩展名"  name="ext" />
		    <grid:column label="备注"  name="remarks" />
		    <grid:column label="sys.common.opt"  name="opt" formatter="button" width="100"/>
			<grid:button title="修改" groupname="opt" function="rowDialog" outclass="btn-success" 
				 innerclass="fa-file-text-o" url="${adminPath}/sys/report/\"+row.id+\"/update" />
			<grid:button title="绑定组织" groupname="opt" function="updateObj" outclass="btn-success" winwidth="20%" 
		 		winheight="60%" innerclass="fa-file-text-o" url="${adminPath}/sys/report/bindOrg?reportId=\"+row.id+\"" />
			<%-- <shiro:hasPermission name="sys:report:create"> --%>
				<grid:toolbar function="create"/>
			<%-- </shiro:hasPermission>
			<shiro:hasPermission name="sys:report:update"> --%>
				<%-- <grid:toolbar function="update"/> --%>
			<%-- </shiro:hasPermission>
			<shiro:hasPermission name="sys:report:delete"> --%>
				<grid:toolbar function="delete"/>
			<%-- </shiro:hasPermission> --%>
			
			<grid:toolbar function="search"/>
			<grid:toolbar function="reset"/>
		</grid:grid>
	</div>
</div>
<script type="text/javascript">

function bindOrg(title,url,gridId,id,width,height){
	debugger
	updateObj(title,url,gridId,id,width,height);
}
</script>
</body>
</html>